package operation;

public class OperationFactory {
	public static ObjectOperation createOperation(String entity) {
		if (entity.equals("Teacher")) {
			return new TeacherOperation();
		} else if (entity.equals("Student")) {
			return new StudentOperation();
		} else if (entity.equals("ClassOpen")) {
			return new ClassOpenOperation();
		} else if (entity.equals("AttendanceSheet")) {
			return new AttendanceSheetOperation();
		} else if (entity.equals("Course")) {
			return new CourseOperation();
		} else if (entity.equals("AttendanceView")) {
			return new AttendanceViewOperation();
		} else if (entity.equals("Role")) {
			return new RoleOperation();
		} else if (entity.equals("User")) {
			return new UserOperation();
		} else if (entity.equals("Class")) {
			return new ClassOperation();
		} else if (entity.equals("AttendanceSheetView")){
			return new AttendanceSheetViewOperation();
		}else {
			return null;
		}
	}
}
